Add rule that a type is assignable to A extends B ? C : D if it is assignable to both C and D.#27589
Closed
mattmccutchen wants to merge 1 commit intomicrosoft:masterfrom
Closed
Add rule that a type is assignable to A extends B ? C : D if it is assignable to both C and D.#27589mattmccutchen wants to merge 1 commit intomicrosoft:masterfrom
A extends B ? C : D if it is assignable to both C and D.#27589mattmccutchen wants to merge 1 commit intomicrosoft:masterfrom
Conversation
assignable to both C and D. (With some restrictions.) Fixes microsoft#26933.
4 tasks
weswigham
added a commit
to weswigham/TypeScript
that referenced
this pull request
Oct 17, 2018
weswigham
added a commit
to weswigham/TypeScript
that referenced
this pull request
Oct 17, 2018
Member
|
Closing in favor of #27932 - sorry for letting this sit open so long |
Collaborator
|
The TypeScript team hasn't accepted the linked issue #26933. If you can get it accepted, this PR will have a better chance of being reviewed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(With some restrictions.)
Fixes #26933.